1.2.7.2. alpha.security.ArrayBoundV2 (C)
Warn about buffer overflows (newer checker).
Examples:
void test() { char *s = ""; char c = s[1]; // warn } void test() { int buf[100]; int *p = buf; p = p + 99; p[1] = 1; // warn } // note: compiler has internal check for this. // Use -Wno-array-bounds to suppress compiler warning. void test() { int buf[100][100]; buf[0][-1] = 1; // warn } // note: requires alpha.security.taint check turned on. void test() { char s[] = "abc"; int x = getchar(); char c = s[x]; // warn: index is tainted }